﻿using Microsoft.EntityFrameworkCore;
using SystemMHB.Domian;
namespace SystemMHB.Infrstructer
{
    /// <summary>
    /// 上下文
    /// </summary>
    public class ApplicationDbContext : DbContext
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="options">构造函数</param>

        public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options)
                : base(options)
         {
         }

        /// <summary>
        /// 供应商
        /// </summary>
        public DbSet<Supplier> Supplier {  get; set; }

        /// <summary>
        /// 仓库管理
        /// </summary>
        public DbSet<Warehouse> Warehouse { get; set; }
        /// <summary>
        /// 物流学习
        /// </summary>
        public DbSet<Logistics> Logistics {  get; set; }
        /// <summary>
        /// 工序任务
        /// </summary>
        public DbSet<ProcessTask> ProcessTask { get; set; }
        /// <summary>
        /// 返库记录
        /// </summary>
        public DbSet<ReturnWarehouse> ReturnWarehouse {  get; set; }

    }
}
